<template>
  <div class="renwu">
    <span>全部任务({{$store.state.listArr.length}})</span>
    <span>已完成({{$store.state.listArr.length  -  $store.getters.weiwancheng}})</span>
    <span class="no">未完成({{$store.getters.weiwancheng}})</span>
  </div>
</template>

<script>
export default {

}
</script>

<style lang='scss'>
.renwu {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 10px;
  .no {
    background-color: red;
    color: #fff;
  }
  span {
    width: 25%;
    height: 30px;
    background-color: aqua;
    border-radius: 30px;
    text-align: center;
    line-height: 30px;
    color: #fff;
  }
}
</style>